Action hook 'network_admin_edit_{$action}'

in WP Core File wp-admin/network/edit.php at line 38

View Source

network_admin_edit_{$action}

Action Hook
Description
Fires the requested handler action. The dynamic portion of the hook name, `$action`, refers to the name of the requested action derived from the `GET` request.

Hook Information

File Location wp-admin/network/edit.php View on GitHub
Hook Type Action
Line Number 38

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into network_admin_edit_{$action}
add_action('network_admin_edit_{$action}', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-admin/network/edit.php:38 - How this hook is used in WordPress core
<?php
  33   * The dynamic portion of the hook name, `$action`, refers to the name
  34   * of the requested action derived from the `GET` request.
  35   *
  36   * @since 3.1.0
  37   */
  38  do_action( "network_admin_edit_{$action}" );
  39  
  40  wp_redirect( network_admin_url() );
  41  exit;

PHP Documentation

<?php
/**
 * Fires the requested handler action.
 *
 * The dynamic portion of the hook name, `$action`, refers to the name
 * of the requested action derived from the `GET` request.
 *
 * @since 3.1.0
 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-admin/network/edit.php
Related Hooks

Related hooks will be displayed here in future updates.